package com.zlp.enums.resource;

import lombok.Getter;

/**
 * 组件类型 (100:图片;200:标题;300:魔方;400:商品)
 * @author ZouLiPing
 * @date 2022/8/17 10:27
 */
@Getter
public enum ComponentTypeEnum {

    COMPONENT_PICTURE("图片",100),
    COMPONENT_TITLE("标题",200),
    COMPONENT_CUBE("魔方",200),
    COMPONENT_PRODUCT("商品",400)
    ;
    private String name;
    private Integer code;


    ComponentTypeEnum(String name, Integer code) {
        this.name = name;
        this.code = code;
    }

}